package runthrad.callbackinterface;

import java.util.ArrayList;

/**
 * @author lianmingzhang
 * @create 2017-09-21 下午9:27
 */
public class Master {
    public static void main(String[] args) {
        ArrayList<String> files = new ArrayList<>();
        files.add("src/file/file.txt");
        files.add("src/file/file2.txt");
        files.add("src/file/file3.txt");
        for (String file : files) {
            CallbackDigest c = new CallbackDigest(file, new Slave(file));
            Thread t = new Thread(c);
            t.start();
        }
    }
}
